<template>
  <div class="fns-input">
    <el-form-item :label="params.label" :prop="params.prop">
      <el-input  :value ="value" placeholder="请输入账号"
                 :maxlength='params.maxlength'
                 :disabled="params.disabled"
                 :clearable="params.clearable"
                 :placeholder="params.placeholder"
                 @input="inputHanld">
      </el-input>
      {{params.prop}}
    </el-form-item>
  </div>
</template>

<script>
  export default {
    props: {
      value: {
        default: ''
      },
      params: {
        label: {
          default: ''
        },
        prop: {
          default: ''
        },
        placeholder: {
          default: ''
        },
        maxlength: {
          default: ''
        },
        disabled: {
          default: false
        },
        clearable: {
          default: true
        }
      }
    },
    computed: {
    },
    watch: {
    },
    data() {
      return {
        val: ''
      }
    },
    methods: {
      inputHanld(e) {
        this.$emit('input', e)
      }
    }
  }
</script>

<style scoped>

</style>
